import { defineStore } from 'pinia'

const useStore = defineStore('publicHeight', {
    state: () => {
        return {
            navigatorHeight: 0,
            tabbarHeight: 0
        }
    },
    // getters: {
    //     navigatorHeight: (state) => state.navigatorHeight,
    //     tabbarHeight: (state) => state.tabbarHeight,
    // },
    actions: {
        setNavigatorHeight(newValue: any) {
            this.navigatorHeight = newValue
        },
        setTabbarHeight(newValue: any) {
            this.tabbarHeight = newValue
        }
    }
})

export default useStore
